from distutils.core import setup, Command

class TestCommand(Command):
  user_options = []
  def initialize_options(self):
    """Nothing to initialize."""
  def finalize_options(self):
    """Nothing to finalize."""
  def run(self):
    import logging, unittest
    logging.basicConfig(level=logging.FATAL)
    ts = unittest.defaultTestLoader.loadTestsFromName('test')
    tr = unittest.TextTestRunner()
    tr.run(ts)

setup(
  name='bcc', version='1.0',
  url='https://code.google.com/p/google-breadcrumb/',
  classifiers=[
    'Environment :: Console',
    'Environment :: Web Environment',
    'Intended Audience :: Developers',
    'License :: OSI Approved :: Apache Software License',
  ],

  requires=['json', 'pyparsing', 'Markdown'],
  py_modules=['bcc'],
  scripts=['bcc.py'],
  cmdclass={'test': TestCommand})
